#ifndef _RPCGLOABLETABLES_H_
#define _RPCGLOABLETABLES_H_

#ifdef __cplusplus
extern "C"{
#endif


#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <termios.h>
#include <pthread.h>

#include <netdb.h>
#include <signal.h>
#include <math.h>
#include <time.h>
#include <stdarg.h>
#include <net/if.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <net/if_arp.h>
#include <arpa/inet.h>
#include <dirent.h>
#include <sys/un.h>


#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/socket.h> 
#include <sys/mman.h>
#include <sys/ioctl.h>


/*Subscriber
#define RPC_SUBSCRIBER_START_ID 0
#define RPC_SUBSCRIBER_END_ID 99
*/
#define CCSubscirberAddIP_RPC_ID					 0
#define CCSubscirberDeleteIP_RPC_ID 					 1
#define CCSubscirberDelete_RPC_ID 					 2
#define CCSubscirberGroupAddSubscriber_RPC_ID 		 3
#define CCSubscirberGroupDeleteSubscriber_RPC_ID 	 4
#define CCSubscirberDeleteIPAll_RPC_ID	 			 5
#define CCSubscirberGroupCreate_RPC_ID				 6
#define CCSubscirberGroupRemove_RPC_ID			 7
/*Subscriber group
#define RPC_SUBSCRIBER_GROUP_START_ID 200
#define RPC_SUBSCRIBER_GROUP_END_ID 299
*/

/*Application
#define RPC_APPLICATION_START_ID 400
#define RPC_APPLICATION_END_ID 499
*/
#define CCApplicationSetPort_RPC_ID					400
#define CCApplicationSetProtocol_RPC_ID				401
#define CCApplicationSetIP_RPC_ID					402
#define CCApplicationDeleteIP_RPC_ID					403
#define CCApplicationDeletePort_RPC_ID				404
#define CCApplicationDeleteProtocol_RPC_ID			405
#define CCApplicationDeleteInternalApp_RPC_ID		406
#define CCApplicationInstallSignature_RPC_ID			407
#define CCApplicationUninstallSignature_RPC_ID		408
#define CCApplicationAddPhone_RPC_ID				409
#define CCApplicationDelPhone_RPC_ID				410
#define CCApplicationCanSetIPTos_RPC_ID				411
#define CCApplicationSetIPTos_RPC_ID					412
#define CCApplicationDeleteIPTos_RPC_ID				413
#define CCApplicationSetOffline_RPC_ID				414
#define CCApplicationDeleteOffline_RPC_ID				415
#define CCApplicationSetUrlDomain_RPC_ID			416
#define CCApplicationDeleteUrlDomain_RPC_ID			417
#define CCApplicationInstallUrlLib_RPC_ID				418
#define CCApplicationAddAcl_RPC_ID					419
#define CCApplicationDelAcl_RPC_ID					420
#define CCApplicationSetInternalApp_RPC_ID			421
#define CCAppGetSkypeStatus_RPC_ID					422
#define CCAppSetSkypeStatus_RPC_ID					423
#define CCSetInterAppStatus_RPC_ID					424
#define CCGetInterAppStatus_RPC_ID					425

/*Application group
#define RPC_APPLICATION_GROUP_START_ID 600
#define RPC_APPLICATION_GROUP_END_ID 699
*/
#define CCApplicationRemoveFromGroup_RPC_ID		600
#define CCApplicationAddToGroup_RPC_ID				601
#define CCApplicationGroupCreate_RPC_ID				602
#define CCApplicationGroupRemove_RPC_ID			603


/*Session
#define RPC_SESSION_START_ID 800
#define RPC_SESSION_END_ID 899
*/
#define CCSessionCreate_RPC_ID						800
#define CCSessionModify_RPC_ID						801
#define CCSessionDelete_RPC_ID						802


/*Policy
#define RPC_POLICY_START_ID 1000
#define RPC_POLICY_END_ID 1099
*/
#define CCPolicyCreate_RPC_ID 1000
#define CCPolicyDelete_RPC_ID 1001
#define CCPolicySetData_RPC_ID 1002
#define CCPolicyMirrorAndRedirect_RPC_ID 1003
#define CCPolicyEnableAck_RPC_ID 1004
#define CCPolicyDisableAck_RPC_ID 1005

/*PIPE
*#define RPC_PIPE_START_ID 1100
*#define RPC_PIPE_END_ID 1199
*/	
#define CCPipeSet_RPC_ID						1100
#define CCPipeDelete_RPC_ID						1101

/*stat_policy
#define RPC_STAT_POL_START_ID 1700
#define RPC_ STAT_POL _END_ID 1799
*/
#define CCStatPolicyCounterInbound_RPC_ID					1700
#define CCStatPolicyCounterOutbound_RPC_ID					1701
#define CCStatPolicyCounterInboundFp_RPC_ID					1702
#define CCStatPolicyCounterOutboundFp_RPC_ID				1703
#define CCStatClearPolicyCounterInbound_RPC_ID				1704
#define CCStatClearPolicyCounterOutbound_RPC_ID				1705
#define CCStatPolicySpeedInbound_RPC_ID						1706
#define CCStatPolicySpeedOutbound_RPC_ID					1707
#define CCStatPolicyPacketCounterInbound_RPC_ID				1708
#define CCStatPolicyPacketCounterOutbound_RPC_ID			1709
#define CCStatPolicyPacketCounterInboundFp_RPC_ID			1710
#define CCStatPolicyPacketCounterOutboundFp_RPC_ID			1711
#define CCStatClearPolicyPacketCounterInbound_RPC_ID		1712
#define CCStatClearPolicyPacketCounterOutbound_RPC_ID		1713
#define CCStatPolicyPacketSpeedInbound_RPC_ID				1714
#define CCStatPolicyPacketSpeedOutbound_RPC_ID				1715
#define CCStatGetPolicySession_RPC_ID						1716
#define CCGetTopPolicySessionBatch_RPC_ID					1717
#define CCGetTopPolicySpeedBatch_RPC_ID					1718
#define CCGetTopPolicyPacketCounterBatch_RPC_ID				1719
#define CCGetTopPolicyPacketSpeedBatch_RPC_ID				1720
#define CCGetTopPolicyCounterBatch_RPC_ID					1721
#define CCStatClearPolicyCounterBatch_RPC_ID					1722
#define CCStatClearPolicyPacketCounterBatch_RPC_ID			1723
#define CCStatMirrorPolicyCounterInbound_RPC_ID				1724
#define CCStatMirrorPolicyCounterOutbound_RPC_ID			1725
#define CCGetTopMirrorPolicyCounterBatch_RPC_ID				1726
#define CCStatClearMirrorPolicyCounterBatch_RPC_ID			1727
#define CCStatClearMirrorPolicyCounterInbound_RPC_ID			1728
#define CCStatClearMirrorPolicyCounterOutbound_RPC_ID		1729
#define CCGetTopMirrorPolicySpeedBatch_RPC_ID				1730
#define CCStatMirrorPolicySpeedInbound_RPC_ID				1731
#define CCStatMirrorPolicySpeedOutbound_RPC_ID				1732
#define CCGetTopMirrorPolicyPacketCounterBatch_RPC_ID		1733
#define CCStatMirrorPolicyPacketCounterInbound_RPC_ID		1734
#define CCStatMirrorPolicyPacketCounterOutbound_RPC_ID		1735
#define CCStatClearMirrorPolicyPacketCounterBatch_RPC_ID		1736
#define CCStatClearMirrorPolicyPacketCounterInbound_RPC_ID	1737
#define CCStatClearMirrorPolicyPacketCounterOutbound_RPC_ID	1738
#define CCGetTopMirrorPolicyPacketSpeedBatch_RPC_ID		1739
#define CCStatMirrorPolicyPacketSpeedInbound_RPC_ID			1740
#define CCStatMirrorPolicyPacketSpeedOutbound_RPC_ID		1741
/*stat_session
	#define RPC_STAT_SESSION_START_ID 1800
	#define RPC_ STAT_SESSION_END_ID 1899
*/
#define CCSTAT_SYSINFO_RPC_ID 1800
#define CCSTAT_SYSINFO_RPC_GET_IPADDR 1801
#define CCSTAT_SYSINFO_PON_NUM_RPC_ID 1802
#define CCSTAT_SYSINFO_ETH_NUM_RPC_ID 1803
#define CCSTAT_SYSINFO_1_NUM_RPC_ID 1804
#define CCSTAT_SYSINFO_2_NUM_RPC_ID 1805
#define CCSTAT_SYSINFO_3_NUM_RPC_ID 1806
#define CCSTAT_SYSINFO_4_NUM_RPC_ID 1807


#ifdef __cplusplus
}
#endif
#endif
